package cn.com.duiba.millionaire.center.spider.dao.appinfo.impl;

import cn.com.duiba.millionaire.center.biz.constants.DatabaseSchema;
import cn.com.duiba.millionaire.center.biz.dao.BaseDao;
import cn.com.duiba.millionaire.center.spider.dao.appinfo.SpiderAppInfoDao;
import cn.com.duiba.millionaire.center.spider.entity.SpiderAppInfoEntity;
import org.springframework.stereotype.Repository;

/**
 * Created by sunchangji on 2018/6/6.
 */
@Repository
public class SpiderAppInfoDaoImpl extends BaseDao implements SpiderAppInfoDao {

    @Override
    public int inserAppInfo(SpiderAppInfoEntity entity) {
        return insert("inserAppInfo",entity);
    }

    @Override
    protected DatabaseSchema chooseSchema() {
        return DatabaseSchema.MILLIONAIRE_CONFIG;
    }
}
